﻿using System;
using System.Collections.Generic;
using System.Text;
using Wolfut.MirageEE.Interface.Common;
using Wolfut.MirageEE.Kernal.Common;

namespace Wolfut.MirageEE.UI.Proxy.Common
{
    public class ServerDateTimeProxy: ServiceProxyBase,IServerDateTime
    {
        public ServerDateTimeProxy()
        {
            ObjectURI = "Common/ServerDateTimeRS.rem";
        }
        public ServerDateTimeProxy(string sessionID):base(sessionID)
        {
            ObjectURI = "Common/ServerDateTimeRS.rem";
        }
        #region IServerDateTime Members

        public DateTime GetDateTime()
        {
            return GetMyInterface().GetDateTime();
        }
        private IServerDateTime GetMyInterface()
        {
            return this.GetInterface(typeof (IServerDateTime), ObjectURI) as IServerDateTime;
        }

        #endregion
    }
}
